<section id="wrapper" class="login-register">
  <div class="login-box">
    <div class="white-box">
      <%= form_tag "/restaurants/sessions",id:"form",class:"form-horizontal form-material" do  %>
        <h3 class="box-title m-b-20">贵客餐厅后台登录</h3>
        <% if flash[:notice] %>
        <div class="alert alert-danger" role="alert">
          <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
          <span class="sr-only">错误:</span>
            <%= flash[:notice] %>
        </div>
        <% end %>
        <div class="form-group ">
          <div class="col-xs-12">
            <%= text_field_tag :login,nil,class:"form-control",placeholder:"请输入登录账号" %>
          </div>
        </div>
        <div class="form-group">
          <div class="col-xs-12">
            <%= password_field_tag :password,nil,class:"form-control",placeholder:"请输入密码" %>
          </div>
        </div>
        <div class="form-group text-center m-t-20">
          <div class="col-xs-12">
            <button class="btn btn-info btn-lg btn-block text-uppercase waves-effect waves-light" type="submit">登录</button>
          </div>
        </div>
      <% end %>
    </div>
  </div>
</section>